package com.ruoyi.project.ypjxc.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class YFactory extends BaseEntity {
    private Long factoryId;
    private String factoryName;
    private String factoryCode;
    private String factoryLinkman;
    private String factoryPhone;
    private String factoryKeyword;
    private String factoryAddress;
    private String status;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YFactory factory = (YFactory) o;
        return Objects.equals(factoryId, factory.factoryId) &&
                Objects.equals(factoryName, factory.factoryName) &&
                Objects.equals(factoryCode, factory.factoryCode) &&
                Objects.equals(factoryLinkman, factory.factoryLinkman) &&
                Objects.equals(factoryPhone, factory.factoryPhone) &&
                Objects.equals(factoryKeyword, factory.factoryKeyword) &&
                Objects.equals(factoryAddress, factory.factoryAddress);
    }

    @Override
    public int hashCode() {
        return Objects.hash(factoryId, factoryName, factoryCode, factoryLinkman, factoryPhone, factoryKeyword, factoryAddress);
    }

    @Override
    public String toString() {
        return "Factory{" +
                "factoryId=" + factoryId +
                ", factoryName='" + factoryName + '\'' +
                ", factoryCode='" + factoryCode + '\'' +
                ", factoryLinkman='" + factoryLinkman + '\'' +
                ", factoryPhone='" + factoryPhone + '\'' +
                ", factoryKeyword='" + factoryKeyword + '\'' +
                ", factoryAddress='" + factoryAddress + '\'' +
                '}';
    }

    public Long getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Long factoryId) {
        this.factoryId = factoryId;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getFactoryCode() {
        return factoryCode;
    }

    public void setFactoryCode(String factoryCode) {
        this.factoryCode = factoryCode;
    }

    public String getFactoryLinkman() {
        return factoryLinkman;
    }

    public void setFactoryLinkman(String factoryLinkman) {
        this.factoryLinkman = factoryLinkman;
    }

    public String getFactoryPhone() {
        return factoryPhone;
    }

    public void setFactoryPhone(String factoryPhone) {
        this.factoryPhone = factoryPhone;
    }

    public String getFactoryKeyword() {
        return factoryKeyword;
    }

    public void setFactoryKeyword(String factoryKeyword) {
        this.factoryKeyword = factoryKeyword;
    }

    public String getFactoryAddress() {
        return factoryAddress;
    }

    public void setFactoryAddress(String factoryAddress) {
        this.factoryAddress = factoryAddress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public YFactory() {
    }

    public YFactory(Long factoryId, String factoryName, String factoryCode, String factoryLinkman, String factoryPhone, String factoryKeyword, String factoryAddress) {
        this.factoryId = factoryId;
        this.factoryName = factoryName;
        this.factoryCode = factoryCode;
        this.factoryLinkman = factoryLinkman;
        this.factoryPhone = factoryPhone;
        this.factoryKeyword = factoryKeyword;
        this.factoryAddress = factoryAddress;
    }
}
